import request from '@/utils/request'

// 查询质保管理列表
export function listGuarantee(query) {
  return request({
    url: '/applet/guarantee/list',
    method: 'get',
    params: query
  })
}

// 查询质保管理详细
export function getGuarantee(id) {
  return request({
    url: '/applet/guarantee/' + id,
    method: 'get'
  })
}

// 新增质保管理
export function addGuarantee(data) {
  return request({
    url: '/applet/guarantee',
    method: 'post',
    data: data
  })
}

// 修改质保管理
export function updateGuarantee(data) {
  return request({
    url: '/applet/guarantee',
    method: 'put',
    data: data
  })
}

// 删除质保管理
export function delGuarantee(id) {
  return request({
    url: '/applet/guarantee/' + id,
    method: 'delete'
  })
}

//导出excel
export function exportExcel(data) {
  return request({
    url: '/applet/guarantee/export',
    method: 'post',
    data: data
  })
}